package cn.org.mrliu.ssm.web.init;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class InitListener implements ApplicationListener<ContextRefreshedEvent> {

	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		if (event.getApplicationContext().getParent()==null) {
			System.out.println("onApplicationEvent....");
			System.out.println(event.getApplicationContext().getParent());
		}
	}

}
